
        <f:view>
            <h:form>
                   <rich:panel id="tree" style="width: 100%; border:0px">
                       <div align="right">
                           <a href="menu.jsp" >Todos los temas</a>
                       </div>
            <rich:panel style="width: 100%; border:0px">
                <rich:tree id="threads" switchType="client" style="width: 470px" icon="/images/text.png" iconLeaf="/images/text.png" adviseNodeOpened="#{ForumsRequest.adviseNodeOpened}" >
                    <rich:treeNodesAdaptor  nodes="#{ForumsSession.currentThread}" var="topic" >
                        <rich:treeNode>
                            <h:commandLink value="#{topic.subject}" target="message" action="topic">
                                <f:setPropertyActionListener target="#{ForumsSession.currentThread}" value="#{topic}" />
                            </h:commandLink>
                        </rich:treeNode>
                        <rich:recursiveTreeNodesAdaptor roots="#{topic.messages}"  var="message" nodes="#{message.messages}">
                            <rich:treeNode>
                                <a4j:htmlCommandLink rendered="#{message.message!=null}" value="Re: " target="message" action="message">
                                    <f:setPropertyActionListener target="#{ForumsSession.currentMessage}" value="#{message}" />
                                </a4j:htmlCommandLink>
                                <a4j:htmlCommandLink value="#{message.subject}" target="message" action="message">
                                    <f:setPropertyActionListener target="#{ForumsSession.currentMessage}" value="#{message}" />
                                </a4j:htmlCommandLink>
                            </rich:treeNode>
                        </rich:recursiveTreeNodesAdaptor>
                    </rich:treeNodesAdaptor>
                </rich:tree>
            </rich:panel>
            <br>
            
        </rich:panel>
            </h:form>
        </f:view>

